﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BusinessLayer
{
    public static class HttpContextExtensions
    {
        public static string GetPageType(this HttpContextWrapper value)
        {
            var routeData = value.Request.RequestContext.RouteData;
            return routeData.GetRequiredString("action");
        }
    }
}